using DataModels.Models.DHIS;
using DataModels.Models.IQWebsite;
using DataModels.Models.OfflineData;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace DataModels.Models.Context
{
    public partial class IQSMS_TestDBContext : DbContext
    {
        static IQSMS_TestDBContext()
        {
            Database.SetInitializer<IQSMS_TestDBContext>(null);
        }

        public IQSMS_TestDBContext()
            : base("Name=IQSMS_TestDBContext")
        {
        }

        public IQSMS_TestDBContext(DbConnection existingConnection, bool contextOwnsConnection)
            : base(existingConnection, contextOwnsConnection)
        {
        }

        //public DbSet<AccessFacility> AccessFacilities { get; set; }
        public DbSet<AccessLevel> AccessLevels { get; set; }
        public DbSet<ANCForm> ANCForms { get; set; }
        public DbSet<ANCForm_HudhurioLaKwanza> ANCForm_HudhurioLaKwanza { get; set; }
        public DbSet<ANCForm_Malaria> ANCForm_Malaria { get; set; }
        public DbSet<ANCForm_PMTCT> ANCForm_PMTCT { get; set; }
        public DbSet<ANCForm_VidokezoVyaHatari> ANCForm_VidokezoVyaHatari { get; set; }
        public DbSet<ANCFormMetadata> ANCFormMetadatas { get; set; }
        public DbSet<ApprovedSMSCell> ApprovedSMSCells { get; set; }
        public DbSet<Assistance> Assistances { get; set; }
        public DbSet<AutoReminderDistrict> AutoReminderDistricts { get; set; }
        public DbSet<AutoReminderFacility> AutoReminderFacilities { get; set; }
        public DbSet<AutoReminderRegion> AutoReminderRegions { get; set; }
        public DbSet<AutoReminderReportMessageTemplate> AutoReminderReportMessageTemplates { get; set; }
        public DbSet<BlockedNumber> BlockedNumbers { get; set; }
        public DbSet<CalendarHoliday> CalendarHolidays { get; set; }
        //public DbSet<CategorizingQuery> CategorizingQueries { get; set; }
        public DbSet<ComparisonType> ComparisonTypes { get; set; }
        public DbSet<DataInputMethod> DataInputMethods { get; set; }
        //public DbSet<DataType> DataTypes { get; set; }
        public DbSet<District> Districts { get; set; }
        public DbSet<ErrMsgSM> ErrMsgSMS { get; set; }
        public DbSet<ExcelTemplateCell> ExcelTemplateCells { get; set; }
        public DbSet<ExcelTemplateReport> ExcelTemplateReports { get; set; }
        public DbSet<ExcelTemplateSheet> ExcelTemplateSheets { get; set; }
        public DbSet<ExcelTemplateCellExtra> ExcelTemplateCellsExtras { get; set; }
        public DbSet<ExcelTemplateCellAssociation> ExcelTemplateCellAssociations { get; set; }
        public DbSet<ExpectedReport> ExpectedReports { get; set; }
        public DbSet<Facility> Facilities { get; set; }
        //public DbSet<FacilityReportView> FacilityReportViews { get; set; }
        public DbSet<FacilityType> FacilityTypes { get; set; }
        //public DbSet<ImportTable> ImportTables { get; set; }
        public DbSet<Language> Languages { get; set; }
        public DbSet<MergingReport> MergingReports { get; set; }
        public DbSet<MobileContryCode> MobileContryCodes { get; set; }
        public DbSet<MobilePhoneOperator> MobilePhoneOperators { get; set; }
        public DbSet<ModemAssociatedCellNumber> ModemAssociatedCellNumbers { get; set; }
        public DbSet<ModemSetting> ModemSettings { get; set; }
        public DbSet<MTUHA_Reports> MTUHA_Reports { get; set; }
        public DbSet<MTUHA_ReportSectionDetails> MTUHA_ReportSectionDetails { get; set; }
        public DbSet<MTUHA_ReportSections> MTUHA_ReportSections { get; set; }
        
        public DbSet<OtherSystem> OtherSystems { get; set; }
        public DbSet<OtherSystemsFacilityDetail> OtherSystemsFacilityDetails { get; set; }
        public DbSet<OtherSystemsDistrictDetail> OtherSystemsDistrictDetails { get; set; }
        public DbSet<OtherSystemsRegionDetail> OtherSystemsRegionDetails { get; set; }
        
        public DbSet<PresetChart> PresetCharts { get; set; }
        public DbSet<PresetChartsIndicator> PresetChartsIndicators { get; set; }
        public DbSet<Query> Queries { get; set; }
        public DbSet<QueryCategory> QueryCategories { get; set; }
        public DbSet<QueryType> QueryTypes { get; set; }
        public DbSet<QueryParameter> QueryParameters { get; set; }

        public DbSet<ReceivedSM> ReceivedSMS { get; set; }
        public DbSet<Region> Regions { get; set; }
        public DbSet<Report> Reports { get; set; }
        public DbSet<ReportBusinessRule> ReportBusinessRules { get; set; }
        public DbSet<ReportChartIndicator> ReportChartIndicators { get; set; }
        public DbSet<ReportData> ReportDatas { get; set; }
        public DbSet<ReportDataLocation> ReportDataLocations { get; set; }
        //public DbSet<ReportDataMerging> ReportDataMergings { get; set; }
        //public DbSet<ReportDomain> ReportDomains { get; set; }
        public DbSet<ReportMerge> ReportMerges { get; set; }
        //public DbSet<ReportViewDataLocation> ReportViewDataLocations { get; set; }
        //public DbSet<ReportView> ReportViews { get; set; }
        public DbSet<SendSMSQueue> SendSMSQueues { get; set; }
        public DbSet<SMSLog> SMSLogs { get; set; }
        public DbSet<SMSReminder> SMSReminders { get; set; }
        public DbSet<SMSReminderTracker> SMSReminderTrackers { get; set; }
        public DbSet<StockStatu> StockStatus { get; set; }
        public DbSet<SupportingPartner> SupportingPartners { get; set; }
        public DbSet<SysSetting> SysSettings { get; set; }
        
        public DbSet<Translation> Translations { get; set; }
        
        public DbSet<User> Users { get; set; }
        
        public DbSet<webpages_Membership> webpages_Membership { get; set; }
        public DbSet<webpages_OAuthMembership> webpages_OAuthMembership { get; set; }
        public DbSet<webpages_Roles> webpages_Roles { get; set; }
        

        public DbSet<KnownReportingError> KnownReportingErrors { get; set; }
        public DbSet<Timeframe> Timeframes { get; set; }
        public DbSet<TestingAndCounseling> TestingAndCounseling { get; set; }
        public DbSet<TestingAndCounselingData> TestingAndCounselingDatas { get; set; }
        public DbSet<AssociatedEarlyInfantDiagnosis> AssociatedEarlyInfantDiagnosisDatas { get; set; }
        public DbSet<CDCTarget> CDCTargets { get; set; }

        public DbSet<LDForm> LDForms { get; set; }
        public DbSet<LDForm_TaarifaYaWaliojifungua> LDForm_TaarifaYaWaliojifungua { get; set; }
        public DbSet<LDForm_NjiaYaKujifungua> LDForm_NjiaYaKujifungua { get; set; }
        public DbSet<LDForm_MatatizoKablaYaKujifungua> LDForm_MatatizoKablaYaKujifungua { get; set; }
        public DbSet<LDForm_MatatizoBaadaYaKujifungua> LDForm_MatatizoBaadaYaKujifungua { get; set; }
        public DbSet<LDForm_EmOC> LDForm_EmOC { get; set; }
        public DbSet<LDForm_PMTCT> LDForm_PMTCT { get; set; }
        public DbSet<LDForm_WatotoWaliozaliwaMmoja> LDForm_WatotoWaliozaliwaMmoja { get; set; }
        public DbSet<LDForm_WatotoWaliozaliwaMapacha> LDForm_WatotoWaliozaliwaMapacha { get; set; }
        public DbSet<LDForm_WatotoWaliosaidiwaKupumua> LDForm_WatotoWaliosaidiwaKupumua { get; set; }

        public DbSet<OptionBPlusFacility> OptionBPlusFacilities { get; set; }
        public DbSet<Messaging.OtherSystemUserNumber> OtherSystemUserNumbers { get; set; }
        public DbSet<Messaging.MessagingLog> OtherSystemMessagingLogs { get; set; }


        public DbSet<OfflineReport> OfflineReports { get; set; }
        public DbSet<OfflineReportIndicator> OfflineReportIndicators { get; set; }


        public DbSet<Activity> Activities { get; set; }
        public DbSet<TripReport> TripReports { get; set; }
        public DbSet<TripReportDistrict> TripReportDistricts { get; set; }
        public DbSet<TripReportMonth> TripReportMonths { get; set; }

        public DbSet<ReportDataSetLink> ReportDataSetLinks { get; set; }
        public DbSet<ReportDataSetElementsLink> ReportDataSetElementsLinks { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //modelBuilder.Configurations.Add(new AccessFacilityMap());
            //modelBuilder.Configurations.Add(new AccessLevelMap());
            //modelBuilder.Configurations.Add(new ANCFormMap());
            //modelBuilder.Configurations.Add(new ANCForm_HudhurioLaKwanzaMap());
            //modelBuilder.Configurations.Add(new ANCForm_MalariaMap());
            //modelBuilder.Configurations.Add(new ANCForm_PMTCTMap());
            //modelBuilder.Configurations.Add(new ANCForm_VidokezoVyaHatariMap());
            //modelBuilder.Configurations.Add(new ANCFormMetadataMap());
            //modelBuilder.Configurations.Add(new ApprovedSMSCellMap());
            //modelBuilder.Configurations.Add(new AssistanceMap());
            //modelBuilder.Configurations.Add(new AutoReminderDistrictMap());
            //modelBuilder.Configurations.Add(new AutoReminderFacilityMap());
            //modelBuilder.Configurations.Add(new AutoReminderRegionMap());
            //modelBuilder.Configurations.Add(new AutoReminderReportMessageTemplateMap());
            //modelBuilder.Configurations.Add(new BlockedNumberMap());
            //modelBuilder.Configurations.Add(new CalendarHolidayMap());
            //modelBuilder.Configurations.Add(new CategorizingQueryMap());
            //modelBuilder.Configurations.Add(new ComparisonTypeMap());
            //modelBuilder.Configurations.Add(new DataInputMethodMap());
            //modelBuilder.Configurations.Add(new DataTypeMap());
            //modelBuilder.Configurations.Add(new DistrictMap());
            //modelBuilder.Configurations.Add(new ErrMsgSMMap());
            //modelBuilder.Configurations.Add(new ExcelTemplateCellMap());
            //modelBuilder.Configurations.Add(new ExcelTemplateReportMap());
            //modelBuilder.Configurations.Add(new ExcelTemplateSheetMap());
            //modelBuilder.Configurations.Add(new ExpectedReportMap());
            //modelBuilder.Configurations.Add(new FacilityMap());
            //modelBuilder.Configurations.Add(new FacilityReportViewMap());
            //modelBuilder.Configurations.Add(new FacilityTypeMap());
            //modelBuilder.Configurations.Add(new ImportTableMap());
            //modelBuilder.Configurations.Add(new LanguageMap());
            //modelBuilder.Configurations.Add(new MergingReportMap());
            //modelBuilder.Configurations.Add(new MobileContryCodeMap());
            //modelBuilder.Configurations.Add(new MobilePhoneOperatorMap());
            //modelBuilder.Configurations.Add(new ModemAssociatedCellNumberMap());
            //modelBuilder.Configurations.Add(new ModemSettingMap());
            //modelBuilder.Configurations.Add(new MTUHA_ReportsMap());
            //modelBuilder.Configurations.Add(new MTUHA_ReportSectionDetailsMap());
            //modelBuilder.Configurations.Add(new MTUHA_ReportSectionsMap());
            //modelBuilder.Configurations.Add(new OtherSystemMap());
            //modelBuilder.Configurations.Add(new OtherSystemsFacilityDetailMap());
            //modelBuilder.Configurations.Add(new PresetChartMap());
            //modelBuilder.Configurations.Add(new PresetChartsIndicatorMap());
            //modelBuilder.Configurations.Add(new QueryMap());
            //modelBuilder.Configurations.Add(new QueryCategoryMap());
            //modelBuilder.Configurations.Add(new QueryTypeMap());
            //modelBuilder.Configurations.Add(new ReceivedSMMap());
            //modelBuilder.Configurations.Add(new RegionMap());
            //modelBuilder.Configurations.Add(new ReportMap());
            //modelBuilder.Configurations.Add(new ReportBusinessRuleMap());
            //modelBuilder.Configurations.Add(new ReportChartIndicatorMap());
            //modelBuilder.Configurations.Add(new ReportDataMap());
            //modelBuilder.Configurations.Add(new ReportDataLocationMap());
            //modelBuilder.Configurations.Add(new ReportDataMergingMap());
            //modelBuilder.Configurations.Add(new ReportDomainMap());
            //modelBuilder.Configurations.Add(new ReportMergeMap());
            //modelBuilder.Configurations.Add(new ReportViewDataLocationMap());
            //modelBuilder.Configurations.Add(new ReportViewMap());
            //modelBuilder.Configurations.Add(new SendSMSQueueMap());
            //modelBuilder.Configurations.Add(new SMSLogMap());
            //modelBuilder.Configurations.Add(new SMSReminderMap());
            //modelBuilder.Configurations.Add(new SMSReminderTrackerMap());
            //modelBuilder.Configurations.Add(new StockStatuMap());
            //modelBuilder.Configurations.Add(new SupportingPartnerMap());
            //modelBuilder.Configurations.Add(new SysSettingMap());
            //modelBuilder.Configurations.Add(new tbl_ancMap());
            //modelBuilder.Configurations.Add(new tbl_matMap());
            //modelBuilder.Configurations.Add(new tbl_mcMap());
            //modelBuilder.Configurations.Add(new tbl_pcrMap());
            //modelBuilder.Configurations.Add(new TranslationMap());
            //modelBuilder.Configurations.Add(new UnregisteredCellMap());
            //modelBuilder.Configurations.Add(new UserAccessLevelMap());
            //modelBuilder.Configurations.Add(new UserProfileMap());
            //modelBuilder.Configurations.Add(new UserMap());
            //modelBuilder.Configurations.Add(new UserTitleMap());
            //modelBuilder.Configurations.Add(new UserTypeMap());
            //modelBuilder.Configurations.Add(new webpages_MembershipMap());
            //modelBuilder.Configurations.Add(new webpages_OAuthMembershipMap());
            //modelBuilder.Configurations.Add(new webpages_RolesMap());
            //modelBuilder.Configurations.Add(new ANCMap());
            //modelBuilder.Configurations.Add(new count_facilitiesMap());
            //modelBuilder.Configurations.Add(new eid_facilitiesMap());
            //modelBuilder.Configurations.Add(new eid_facilities_countMap());
            //modelBuilder.Configurations.Add(new facilities_count_dispensariesMap());
            //modelBuilder.Configurations.Add(new facilities_count_health_centresMap());
            //modelBuilder.Configurations.Add(new facilities_count_hospitalsMap());
            //modelBuilder.Configurations.Add(new facilities_count_typesMap());
            //modelBuilder.Configurations.Add(new facilities_count_types_districtsMap());
            //modelBuilder.Configurations.Add(new FacilitiesReportMap());
            //modelBuilder.Configurations.Add(new MATMap());
            //modelBuilder.Configurations.Add(new MCMap());
            //modelBuilder.Configurations.Add(new PCRMap());
            //modelBuilder.Configurations.Add(new PositiveTotalTestedMap());
            //modelBuilder.Configurations.Add(new users_SMSMap());
        }
    }
}
